#include "FragmentDetailDialog.h"

FragmentDetailDialog::FragmentDetailDialog(void)
	:mName(NULL),mDesc(NULL)
{
}

FragmentDetailDialog::~FragmentDetailDialog(void)
{
	CC_SAFE_RELEASE(mName);
	CC_SAFE_RELEASE(mDesc);
}

bool FragmentDetailDialog::init()
{
	return true;
}

SEL_MenuHandler FragmentDetailDialog::onResolveCCBCCMenuItemSelector(CCObject * pTarget, CCString * pSelectorName )
{
	CCB_SELECTORRESOLVER_CCMENUITEM_GLUE(this, "onDoItClick", FragmentDetailDialog::onDoItClick);
	return NULL;
}

SEL_CCControlHandler FragmentDetailDialog::onResolveCCBCCControlSelector( CCObject * pTarget, CCString * pSelectorName )
{
	CCB_SELECTORRESOLVER_CCCONTROL_GLUE(this, "onSnatchBtnClick", FragmentDetailDialog::onSnatchBtnClick);
	CCB_SELECTORRESOLVER_CCCONTROL_GLUE(this, "onCloseBtnClick", FragmentDetailDialog::onCloseBtnClick);
	return NULL;
}

bool FragmentDetailDialog::onAssignCCBMemberVariable( CCObject * pTarget, CCString * pMemberVariableName, CCNode * pNode )
{
	CCB_MEMBERVARIABLEASSIGNER_GLUE(this, "mName", CCLabelTTF *, this->mName);
	CCB_MEMBERVARIABLEASSIGNER_GLUE(this, "mDesc", CCLabelTTF *, this->mDesc);
	return false;
}

void FragmentDetailDialog::onNodeLoaded( CCNode * pNode, CCNodeLoader * pNodeLoader )
{

}

void FragmentDetailDialog::onEnter()
{
	CCNode::onEnter();
}

void FragmentDetailDialog::onExit()
{
	CCNode::onExit();
}

void FragmentDetailDialog::refresh()
{

}

void FragmentDetailDialog::_onNotification( CCObject* object )
{
	
}

void FragmentDetailDialog::onDoItClick(CCObject* pSender)
{
    
}

void FragmentDetailDialog::onSnatchBtnClick( CCObject * pSender, CCControlEvent pCCControlEvent )
{

}

void FragmentDetailDialog::onCloseBtnClick( CCObject * pSender, CCControlEvent pCCControlEvent )
{

}
